﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using JTC.Genetics.Molecules;
using JTC.Genetics.Replication._Interfaces;
using Moq;

namespace JTC.Genetics.UnitTests
{
    [TestClass]
    public class RNA_Tests
    {
        RNA _instance;
        Mock<ITranslator> _mockTranslator;

        [TestInitialize]
        public void SetUp()
        {
            _mockTranslator = new Mock<ITranslator>();
            _instance = new RNA(_mockTranslator.Object);
        }

        [TestMethod]
        public void Translate_Test()
        {
            // Act

            _instance.Translate();
            
            // Assert

            _mockTranslator.Verify(x => x.Initiation());
            _mockTranslator.Verify(x => x.Elongation());
            _mockTranslator.Verify(x => x.Termination());
        }
    }
}
